package com.tianshuo.mybatis.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * 通过ImportSelector接口，@Import的类型，也会被实例化。
 * @ClassName : CustomSelector
 * @Description : selector
 * @Author : tianshuo
 * @Date: 2020-10-31 20:22
 */
public class CustomSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{"com.tianshuo.importtest.SelectorImpl"};
    }
}

